<template>
    <div class="privacy">
        <div class="liuhai"></div>
        <div class="settings-header">
            <div>
                <i class="settings-icon"  @click="goTo('/settings')">&#xe600;</i>
            </div>
            <div>隐私</div>
            <div></div>
        </div>
        <div class="privacyContent">
            <div class="msgList">
                <div class="left">允许陌生人评论</div>
                <van-switch v-model="checked1" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
            <div class="msgList">
                <div class="left">允许给我推荐通讯录好友</div>
                <van-switch v-model="checked2" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
            <div class="msgList">
                <div class="left">允许通过此手机号搜到我</div>
                <van-switch v-model="checked3" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "index",
        data(){
            return{
                checked1:true,
                checked2:true,
                checked3:false,
            }
        },
        methods: {
            goTo(path) {
                this.$router.replace(path)
            },
        }
    }
</script>

<style>
    .privacyContent{
        margin-top: 20px;
    }
</style>
